.global main
.text
main:
	main_loop:
		rd $g0 3
		muli $g0 $g0 26
		divi $g0 $g0 2147483648
		rd $t0 2
		eqi $t1 $t0 27
		ji $t1 dont_write
		lti $g1 $t0 97
		gti $g2 $t0 122
		or $g1 $g1 $g2
		ji $g1 write
		subi $t0 $t0 97
		add $t0 $t0 $g0
		modi $t0 $t0 26
		addi $t0 $t0 97
		write:
		wr $t0 1
		dont_write: 
		not $t1 $t1
		ji $t1 main_loop
	hlt

